package com.example.exam.pojo.vo.ExamPaperVO;

import com.example.exam.pojo.vo.QuestionVO.QuestionStandardVO;
import lombok.Data;
import org.springframework.stereotype.Component;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

@Component
@Data
public class ExamPaperTitleItemVO {

    @NotBlank(message = "标题内容不能为空")
    private String name;

    @Size(min=1,message = "请添加题目")
    @Valid
    private List<QuestionStandardVO> questionItems;
}
